package com.six.result;

public enum MessageCode {
    REQUEST_SUCCESS(0,"请求成功!"),
    ID_NOT_EMPTY(50001,"ID不能为空!"),
    UN_KNOW_EXCEPTION(50000,"系统开小差了！"),
    DELETE_FAILURE(40000,"已经关联了房产或者楼栋删除失败!"),
    TWO_PASSWORD_NO_EQUALS(50001,"密码不相同"),
    USERNAME_EXIST(50002,"用户名存在"),
    PHONE_EXIST(50003,"手机号存在"),
    EMAIL_EXIST(50004,"邮箱存在"),
    USERNAME_OR_PASSWORD_ERROR(50005,"用户名或者密码错误!"),
    TOKEN_NOT_EMPTY(50006,"token不能为空！"),
    TOKEN_ERROR(50007,"非法token！"),
    NO_PERMISSION(50008,"没有权限"),
    ALREADY_ADD_MATERIAL(50008,"本月已经添加过该物料计划了");
    private String msg;

    MessageCode(Integer code,String msg) {
        this.msg = msg;
        this.code = code;
    }

    private Integer code;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
